import 'dart:math';

import 'package:flutter/material.dart';
import 'package:qqmusic/widget/gedian.dart';
import 'package:qqmusic/widget/minitem.dart';

class style extends StatefulWidget {
  style({Key key}) : super(key: key);

  @override
  State<style> createState() => _styleState();
}

class _styleState extends State<style> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Container(
                child: Row(
              children: [
                CircleAvatar(
                  backgroundColor: Colors.amber,
                  backgroundImage: NetworkImage(
                      'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F30%2F90%2F40%2F309040a0602c672cebc6ab3a1bbbc8cd.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650712663&t=47d28cd7f4cfdb1665f40019c85bcbdb'),
                ),
                Container(
                  padding: EdgeInsets.only(left: 10),
                  child: Text(
                    '小牛犊吃青菜',
                    style: TextStyle(
                        color: Color(0xff353535),
                        fontSize: 17,
                        fontWeight: FontWeight.w700),
                  ),
                ),
              ],
            )),
            Text(
              '我的音乐偏好 >',
              style: TextStyle(
                  color: Color(0xff353535), fontWeight: FontWeight.w600),
            )
          ],
        ),
        Container(
          margin: EdgeInsets.only(top: 10, bottom: 20),
          height: 160,
          child: ListView.builder(
            scrollDirection: Axis.horizontal,
            itemCount: 3,
            itemBuilder: (BuildContext context, int index) {
              if (index == 0) {
                return diantai();
              }
              return minitem();
            },
          ),
        )
      ],
    );
  }
}
